<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,DatePicker"></t:base>
<div id="main" style="width: 960px;height: 500px;">
</div>
<script type="text/javascript" src="plug-in/echart/echarts.js"></script>

 <script type="text/javascript">
 $(document).ready(function(){
     $.ajax({
         url:"businessOrderController.do?chart&orgCode=${orgCode}&orgType=${orgType}",
         type:"GET",
         dataType:"JSON",
         async: false,
         success:function(data){
             var echartsWarp= document.getElementById('main');
             var resizeWorldMapContainer = function () {//用于使chart自适应高度和宽度,通过窗体高宽计算容器高宽
                 echartsWarp.style.width = '960px';
                 echartsWarp.style.height = '500px';
             };
             resizeWorldMapContainer ();//设置容器高宽
             var myChart = echarts.init(echartsWarp);
             myChart.setOption(data);
         }
     });
 });
 </script>
